package com.mashibing.test.case2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Playground {
	@Autowired
	@Qualifier("person")
	private Person p;

	@Autowired
	@Qualifier("person2")
	private Person p2;

	@Autowired
	@Qualifier("person3")
	private Person p3;

	@Autowired
	private List<Person> pList;

	public void test() {
		System.out.println("p1:"+p);
		System.out.println("p2:"+p2);
		System.out.println("p3:"+p3);
		System.out.println("pList:"+pList);
	}
}
